# 可以替换镜像版本
ARG IMAGE=node:18-alpine

FROM ${IMAGE} as builder

WORKDIR /app

ENV TZ Asia/Shanghai
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --update --no-cache tzdata bash
RUN echo "alias ll='ls -lah --color'" >/root/.bashrc

RUN npm config set registry https://registry.npmmirror.com && npm install -g pnpm
